#configure and define architecture stuff here
#decide word size
#decide x86 or x64
#decide processor name. If cross compile is active override processor name

function(GConfigureArchitec)
	
	# let user choose target architecture
	set(G_TARGET_ARCHITEC "x86" CACHE STRING "Choose target architecture. PowerPC, PS3, PS4, x86, x86_64, ARM")
	
	
	# define architecture preprocessor
	STRING(TOUPPER ${G_TARGET_ARCHITEC} ARCHITEC_NAME_UPPER)
	ADD_DEFINITIONS(-DG_ARCHITEC_${ARCHITEC_NAME_UPPER})
	ADD_DEFINITIONS(-DG_ARCHITEC="${G_TARGET_ARCHITEC}")
	
endfunction()